package java02.ui;
//类似C中的include，称为导包

import java02.bll.Student;

class MiddleStudent extends Student {
    public void f() {
        /*super.sno = "1001";
        super.id = "100111";*/
        super.name = "刘德华";
        super.age = 22;
    }
}


public class Test {
    public static void main(String[] args) {
        // 获得Student类中的一个对象，将类Student实例化为一个对象(实例)
        Student xw = new Student();
       /* xw.sno = "1001";
        xw.id = "100111";
        xw.name = "刘德华";*/
        xw.age = 22;
//        xw.sno = "1001";
//        xw.name = "刘德华";
//        xw.age=10000;
        try {
            xw.setAge(10000);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
